﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraRrom : MonoBehaviour {
    public string key;
    public string id;
    public Base.Custom.SingleObject single;
	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            //transform.rotation = single.transform.rotation;
            transform.position =new Vector3(single.point.x,single.point.y,single.point.z-2) ;
        }
       
	}
}
